export function arrayEqual(target: readonly any[], source: readonly any[]): boolean {
    if (Array.isArray(target) && Array.isArray(source)) {
        if (source === target) return true;
        if (target.length === source.length) {
            for (let i = 0; i < source.length; i++) {
                if (target[i] !== source[i]) {
                    return false;
                }
            }
            return true;
        }
    }
    return false;
}